package com.ruoyi.hotSpot.controller;


import com.ruoyi.common.constant.HttpStatus;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;

import com.ruoyi.hotSpot.domain.dto.A2StaticInfoCondition;
import com.ruoyi.hotSpot.service.IA2Service;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "AIS/ADS-B管理（免登录）")
@RestController
@RequestMapping("/webs/a2")
public class A2Controller extends BaseController
{
    @Autowired
    private IA2Service a2Service;

    @ApiOperation("获取2A静态信息列表（分页）")
    @GetMapping("/a2StaticInfoList")
    public TableDataInfo a2StaticInfoList(@Validated @ModelAttribute final A2StaticInfoCondition condition)
    {
        TableDataInfo rspData =  a2Service.a2StaticInfoList(condition);
        rspData.setCode(HttpStatus.SUCCESS);
        rspData.setMsg("查询成功");
        return rspData;
    }

}
